import request from "~/util/request";
const api_name = '/admin/cmn/dict'
export default {
  findDictByCode(code){
    return request({
      url:`${api_name}/findDictByCode/${code}`,
      method: 'get'
    })
  },
  findDictByParentId(id){
    return request({
      url: `${api_name}/findChildData/${id}`,
      method:'get'
    })
  },
  findDictById(id){
    return request({
      url: `${api_name}/findDictById/${id}`,
      method: 'get'
    })
  }
}
